﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Error.aspx.cs" Inherits="Error" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>404</title>
    <link href="App_Themes/Default/css/Default.css" rel="stylesheet" type="text/css" />

</head>
<body>
<div class="error404">
                    <div class="bar-err">
                    	<p class="p-err">
                        	Không tìm thấy đường dẫn này
                        </p>
                    </div>
                    <div class="ct-err">
											<form onsubmit="return SearchNew();" action="" name="SearchEx" method="POST">	
												<p class="p-mess" style="margin-bottom:10px">Bạn có thể truy cập vào <a href="#">trang chủ</a> hoặc sử dụng ô dưới đây để tìm kiếm</p>
                        <div class="div-search">
												
														<div class="input-search">
                            	<div class="search-in">
                                	<input  class="txt-s404" id="TSearch" onfocus="SearchOnFocus(this)" onkeyup="initTyper(this)" onblur="SearchOnBlur(this)" name="TSearch" autocomplete="off" value="Từ khóa tìm kiếm">
                                </div>
                            </div>
                             <input type="submit" class="btt-s404" value="Tìm kiếm" />
												
                        </div>
                        <p class="p-areaS">
                        	<input type="radio" id="ns" name="area-search" value="vne" checked>
                            <label style="margin:0px 10px 0px 0px;">eProject</label>
                            <input type="radio" id="gg" name="area-search" value="google" >
                            <label>Google</label>
                        </p>
													</form>				
                    </div>
									<!--<a style="font:11px Tahoma; color:#8186ae;cursor:pointer;" id="ns" onClick="ChangeTo(1)">VnExpress |</a>
									<a style="font:11px Tahoma; color:#1a4677;cursor:pointer;" id="gg" onClick="ChangeTo(0)">Google</a>
									<input type="hidden" id="tabindex" value="ns">-->
<script language="javascript">

    function SearchNew() {
        if (document.getElementById("gg").checked == true) {
            document.location.target = '_blank';
            location.href = "http://www.google.com.vn/#hl=vi&biw=1440&bih=686&q=" + document.getElementById("TSearch").value;
            return false;
        }
        else {
            return SearchMe0(document.getElementById("TSearch").value, 1);
        }
    }

    function SearchMe0(s, a) {
        while (s.length > 0 && s.charAt(0) <= ' ') {
            s = s.substr(1);
        }

        while ((i = s.length) > 0 && s.charAt(i - 1) <= ' ') {
            s = s.substr(0, i - 1);
        }

        if (s == '') {
            document.Search.txtSearch.value = s;
            return false;
        }

        f = GetPostVariable('r', PAGE_FOLDER);
        s = escape(UnicodeSet(s));
        r = '';
        r = 'http://timkiem.vnexpress.net/?q='.concat(s);

        if (location.pathname.toLowerCase() == '/search/') {
            location.replace(r);
        }
        else {
            location.href = r;
        }
        return false;
    }

</script>

</div>
</body>
</html>
